<%@ include file="/WEB-INF/views/admin/header.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div id="section">
	<div id ="mainContent">
			
			
			<div id="labelPage">ข้อมูล rule</div>
			
			<div id="ctrlWrap">
				<div id="ctrlL">
				</div>	
				<div id="ctrlR"><a href="ruleAddForm"><img  src="${context}/resources/img/add.jpg"/></a></div>
			</div>
			
			<form:form  action="${action}" method="post" id="ruleEdit" modelAttribute="Rule" >
				<table class="tableList">
				
				<tr class="tableHeader">
					<td>ชื่อ</td>
					<td>งบประมาณ</td>
					<td>ลายละเอียด</td>
					<td>Action</td>
				</tr>
				
				<tr>
					<td><input type="text" name="name" value="${rule.name}"></td>
					<td><input type="text" name="budget" value="${rule.budget}"></td>
					<td><input type="text" name="detail" value="${rule.detail}"></td>
					<td colspan="2"><input type="hidden" name="ruleId" value="${rule.ruleId}"><button type="submit">บันทึก</button></td>
				</tr>
				</table>
			</form:form>
		
	</div>	
</div>
<%@ include file="/WEB-INF/views/admin/footer.jsp" %>



